import { showLoadingToast } from "vant"
import type {
  ToastOptions
} from 'vant'

function showLoading(config: ToastOptions | void) {
  return showLoadingToast({
    duration: 200000,
    forbidClick: true,
    message: '加载中',
    ...config
  })
}

export {
  showLoading,
}